package com.zhipu.resetbalance.mobile.dao;

import com.raizlabs.android.dbflow.sql.language.SQLite;
import com.zhipu.resetbalance.mobile.event.InspectorEntity;
import com.zhipu.resetbalance.mobile.event.InspectorEntity_Table;

import java.util.List;

public class InspectorEntityDao {

    private InspectorEntityDao() {
    }

    private static final class SingletonHolder {
        private static final InspectorEntityDao INSTANCE = new InspectorEntityDao();
    }

    public static InspectorEntityDao getInstance() {
        return SingletonHolder.INSTANCE;
    }



    /**
     * 获取所有数据
     *
     * @return
     */
    public List<InspectorEntity> getAllList() {
        return SQLite.select().from(InspectorEntity.class).where().orderBy(InspectorEntity_Table.InspectorEntityId,false).queryList();
    }

}
